import request from '@/utils/request'

export const addOneCity = data => request({
  url: '/addOneCity',
  method: 'put',
  data: data || {}
})

export const deleteOneCity = id => request({
  url: '/deleteOneCity/' + id,
  method: 'delete'
})

export const updateOneCity = data => request({
  url: '/updateOneCity',
  method: 'patch',
  data: data || {}
})

export const getOneCity = id => request({
  url: '/getOneGoodsCity/' + id,
  method: 'get'
})

export const getCityList = data => request({
  url: '/getCityList',
  method: 'post',
  data: data || {}
})

export const getAllCityList = () => request({
  url: '/getAllCityList',
  method: 'get'
})
